package ch.netcetera.planningpoker.client.admin.create;

import com.google.gwt.event.shared.HasHandlers;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.NameToken;
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
import com.gwtplatform.mvp.client.proxy.ProxyPlace;
import com.gwtplatform.mvp.client.proxy.RevealRootContentEvent;

public class CreateGamePresenter extends
        Presenter<CreateGamePresenter.IView, CreateGamePresenter.IProxy> {

    @ProxyCodeSplit
    @NameToken("create")
    public interface IProxy extends ProxyPlace<CreateGamePresenter> {

    }

    public interface IView extends View {

        HasHandlers getCreateGame();
    }

    @Inject
    public CreateGamePresenter(EventBus eventBus, IView view, IProxy proxy) {
        super(true, eventBus, view, proxy);
    }

    @Override
    protected void revealInParent() {
        RevealRootContentEvent.fire(this, this);
    }

}
